<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('payment_web_wallets', function (Blueprint $table) {
            $table->id();
            $table->string('wallet_address')->unique(); // 钱包地址
            $table->string('wallet_type')->default('trc20'); // 钱包类型，默认为 trc20
            $table->timestamp('last_transaction_time')->nullable(); // 上次交易时间
            $table->timestamps(); // 创建时间和更新时间
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('payment_web_wallets');
    }
};
